<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>循环结构</title>
	<body>
		<div id="app">
		<input name="age" v-model.number="age" />
		<button @click="expand">增加</button>
		<input name="name" v-model.trim="name" />
		{{name.length}}<br />
		<input name="username"  v-model.lazy="username"/>
        {{username}}
		</div>
		<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
		<script>
			const app = new Vue({
				el: '#app',
				data: {
			         age: '',
					 name: '',
					 username: ''
					
				},
				methods: {
					expand(){
						this.age = 10+this.age
					}
				}
			}) 
		</script>
	</body>
</html>>
